package com.cxytiandi.encrypt_springboot_example.dto;


public class UserDto {

	private int id;
	
	private String name;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (!(o instanceof UserDto)) return false;

		UserDto userDto = (UserDto) o;

		if (id != userDto.id) return false;
		return name != null ? name.equals(userDto.name) : userDto.name == null;
	}
	
}
